home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / View offsets when embeded < prev    next >
Encoding:
Internet Message Format  |  1996-07-15  |  1.1 KB  |  [TEXT/ttxt]

  1. Subject:     View offsets when embeded
  2. Sent:        7/12/96 10:59 AM
  3. Received:    7/12/96 11:11 AM
  4. From:        Scott Daniels, scottdfl@sprynet.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Hi ODF team,
  9.  
  10. My part uses an offscreen bitmap to draw the content into, which is then
  11. blasted back to the main view of my frame. When I edit the objects in that
  12. view however I do it directly in the view, so the view and the offscreen
  13. bitmap must be perfectly registered. I have accomplished this feat when I
  14. launch my part directly. However, when I embed my part into ODF draw and
  15. try to edit an object it appears 2-3 pixels off in both x & y directions.
  16. This also appears to be the width of the dbl-line border around my frame.
  17. Obviously, the view offsets are different when embeded vs. not embeded.
  18.  
  19. Would you please enlighten me on the differences in transforms, etc. for
  20. these two cases, and where I might be in error in my code?
  21.  
  22. Thanks in advance,
  23. Scott
  24. -- 
  25. Scott Daniels             scottdfl@sprynet.com
  26. "Life appears the way you choose to see it."
  27.